package com.manage.system.api.feign;

import com.manage.system.api.entity.SysLoginLog;
import com.manage.common.core.constants.ServiceNameConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author zhangqing
 * @version V1.0
 * @description 访问日志远程调用
 * @date 6/3/2021 4:21 PM
 */
@FeignClient(name = ServiceNameConstants.SYSTEM_SERVICE,path = "/login-log")
public interface RemoteSystemLoginLog {

    /**
     * 添加登录日志
     * @param sysLoginLog 登录日志对象
     */
    @GetMapping("/addLoginLog")
    void addLoginLog(@RequestBody SysLoginLog sysLoginLog);
}
